package com.pelli.imarket.client.widget;

import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.BorderLayout;
import com.extjs.gxt.ui.client.widget.menu.MenuBar;
import com.extjs.gxt.ui.client.widget.layout.BorderLayoutData;
import com.extjs.gxt.ui.client.Style.LayoutRegion;
import com.extjs.gxt.ui.client.widget.menu.Menu;
import com.extjs.gxt.ui.client.widget.menu.MenuBarItem;
import com.extjs.gxt.ui.client.widget.menu.MenuItem;

public class GridWidget extends LayoutContainer {

	public GridWidget() {
		setLayout(new FitLayout());
		
		ContentPanel cntntpnlNewContentpanel = new ContentPanel();
		cntntpnlNewContentpanel.setHeading("New ContentPanel");
		cntntpnlNewContentpanel.setCollapsible(true);
		cntntpnlNewContentpanel.setLayout(new BorderLayout());
		
		MenuBar menuBar = new MenuBar();
		
		
		Menu mComuni = new Menu();
		mComuni.add(new MenuItem("Comuni"));
		MenuBarItem mnbrtmNewMenubaritem = new MenuBarItem("Griglie",mComuni);
		menuBar.add(mnbrtmNewMenubaritem);
		cntntpnlNewContentpanel.add(menuBar);
		add(cntntpnlNewContentpanel);
	}

}
